<template>
    <div>
        <h1>B组件</h1>
        {{title2}}
    </div>
</template>

<script>
export default {
  name: "B",
  props: ["title2"],
  data(){
    return{
     
    }
  },
  methods:{
    init(){
      
    }
  },
  mounted(){
    this.init();
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
